<script type="text/javascript">
<!--
function page_change()
{
	var i = parseInt($('#txt_go_page').val());
	var ps = parseInt($('#sel_pagesize').val());
	location.href = '<?php echo $pager->page_url.'?'.$pager->params.$pager->page_var.'=';?>'+i+'&<?php echo $pager->page_size_var;?>='+ps;
}
//-->
</script>
<div class="span-3"> 
   <span id="finder-pageset-715020" style="cursor: pointer"> 每页显示 
   <select name="sel_pagesize" id="sel_pagesize" onchange="page_change()">
   <?php foreach($pager->page_size_sel as $v){?>
   <option value="<?php echo $v;?>" <?php if($v == $pager->page_size) echo 'selected';?>><?php echo $v;?></option>
   <?php }?>
   </select>条 </span> 
   </div>
<div class="span-5"> 
    <form class="clearfix" id="finder-pagejump-f9ec3c"> 
    <div class="span-auto">跳转到第<input id="txt_go_page" type="text" style="width:20px; height:1em; padding:0" class="x-input" value="<?php echo $pager->cur_page;?>">页</div> 
    <div class="span-auto"> 
    <em class="lnk" onclick="page_change();"><span class="fontcolorBlack">Go</span></em> </div>
</form> </div> 
<div class="span-auto">    
<table cellspacing="0" cellpadding="0" style="width:auto" class="pager">
<tbody><tr>
<td style="padding-right:20px">
    <?php if ($pager->cur_page > 1){?>
        <a class="borderup" href="<?php echo $pager->url($pager->cur_page-1);?>"><?php echo $pager->str_pre_page;?></a>
    <?php } else{?>
        <?php echo $pager->str_pre_page;?>
    <?php } ?>
	
	<?php if ($pager->total_pages < 11){ /* ? Previous  1 2 3 4 5 6 7 8 9 10 11 12  Next ? */ ?>
        <?php for ($i = 1; $i <= $pager->total_pages; $i++){ ?>
            <?php if ($i == $pager->cur_page){ ?>
            	<span class="borderdown" style="background:#fff; color:#000;font-weight:700;padding:2px 5px"><?php echo $i; ?></span>
            <?php }else{ ?>
                <a class="borderup" href="<?php echo $pager->url($i) ;?>"><?php echo $i; ?></a>
            <?php } ?>
        <?php } ?>

    <?php }elseif ($pager->cur_page < 9){ /* ? Previous  1 2 3 4 5 6 7 8 9 10 … 25 26  Next ? */ ?>

        <?php for ($i = 1; $i <= 10; $i++){ ?>
            <?php if ($i == $pager->cur_page){ ?>
                <?php echo $i; ?>
            <?php }else{ ?>
                <a class="borderup" href="<?php echo $pager->url($i) ?>"><?php echo $i; ?></a>
            <?php } ?>
        <?php } ?>
        &hellip;
        <a class="borderup" href="<?php echo $pager->url($pager->total_pages - 1) ;?>"><?php echo $pager->total_pages - 1; ?></a>
        <a class="borderup" href="<?php echo $pager->url($pager->total_pages); ?>"><?php echo $pager->total_pages; ?></a>

    <?php }elseif ($pager->curr_page > $pager->total_pages - 8){ /* ? Previous  1 2 … 17 18 19 20 21 22 23 24 25 26  Next ? */ ?>

        <a class="borderup" href="<?php echo $pager->url(1) ?>">1</a>
        <a class="borderup" href="<?php echo $pager->url(2) ?>">2</a>
        &hellip;
        <?php for ($i = $pager->total_pages - 9; $i <= $pager->total_pages; $i++){ ?>
            <?php if ($i == $pager->cur_page){ ?>
                <?php echo $i; ?>
            <?php }else{ ?>
                <a href="<?php echo $page->url($i) ?>"><?php echo $i; ?></a>
            <?php } ?>
        <?php } ?>

    <?php }else{ /* ? Previous  1 2 … 5 6 7 8 9 10 11 12 13 14 … 25 26  Next ? */ ?>

        <a class="borderup" href="<?php echo $page->url(1) ?>">1</a>
        <a class="borderup" href="<?php echo $page->url(2) ?>">2</a>
        &hellip;

        <?php for ($i = $pager->cur_page - 5; $i <= $pager->cur_page + 5; $i++){ ?>
            <?php if ($i == $pager->cur_page){ ?>
                <?php echo $i; ?>
            <?php }else{ ?>
                <a href="<?php echo $page->url($i) ?>"><?php echo $i; ?></a>
            <?php } ?>
        <?php } ?>

        &hellip;
        <a class="borderup" href="<?php echo $pager->url($pager->total_pages - 1) ?>"><?php echo $pager->total_pages - 1 ?></a>
        <a class="borderup" href="<?php echo $pager->url($pager->total_pages) ?>"><?php echo $pager->total_pages ?></a>

    <?php } ?>


    <?php if ($pager->cur_page < $pager->total_pages){?>
        <a class="borderup" href="<?php echo $pager->url($pager->cur_page+1); ?>"><?php echo $pager->str_next_page;?></a>
    <?php }else{ ?>
        <?php echo $pager->str_next_page;?>
    <?php } ?>
    </td>
    </tr></tbody></table></div>
    <div class="span-auto textright">共<i><?php echo $pager->total_rows;?></i>条  </div>